﻿cmake_minimum_required(VERSION 3.8)

project(MyProject)

set(CMAKE_CXX_STANDARD 17)
# 添加调试选项
set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -g")

# 查找 Boost 库
find_package(Boost REQUIRED)

# 添加可执行文件
add_executable(MyProgram main.cpp)

# 链接必要的库文件
target_link_libraries(MyProgram ${REQUIRED_LIBRARIES} Boost::boost)


